/**
 * Copyright 2013-2015. blackdog1987@gmail.com . All rights reserved. 
 */
package com.goodsogood.union.auth.dao.hibernate.jdbc;

import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

/**
 * @author DongGuoChao
 * @date 2013-12-26
 */
public class BaseJdbcDao extends JdbcDaoSupport {
	public static final long MAX_ROW = 20000;
	private BaseJdbcTemplate baseJdbcTemplate;

	@Override
	protected void initTemplateConfig() {
		this.baseJdbcTemplate = new BaseJdbcTemplate(getJdbcTemplate());
	}

	public BaseJdbcTemplate getBaseJdbcTemplate() {
		return baseJdbcTemplate;
	}

	public NamedParameterJdbcTemplate getNamedParameterJdbcTemplate() {
		return this.baseJdbcTemplate;
	}
}